<?php
class libgen
{
    public static $lib_path = '/home/ingridients/server/lib/';
    public static function _add($name,$object)
    {
        $data =  var_export($object,true);
        $data = "<?\n".'public static $'.$name.' = '.$data."\n"."?>";
        file_put_contents(self::$lib_path.$name.'.php', $data);
    }
}
?>
